package cn.xerllent.wxtp.utils;

/**
 * 外部联系人群变更消息指令
 * @author sxh
 */
public enum ExtTagEnum {

	CREATE("create", "客户群创建事件"),
	UPDATE("update", "客户群变更事件"),
	DISMISS("dismiss", "客户群解散事件");

    ExtTagEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public static ExtTagEnum getByInstance(String key){
        for (ExtTagEnum value : ExtTagEnum.values()) {
            if (value.key.equalsIgnoreCase(key)){
                return value;
            }
        }
        return null;
    }
    
    private String key;

    private String desc;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
